package com.guoxin.singleton.hungary;

/**
 * 饿汉式，静态代码块
 *
 * @author guoxin
 * @date 2019/8/15
 */
public class StaticCode {

    public static final StaticCode INSTANCE;

    static {
        INSTANCE = new StaticCode();
    }

    private StaticCode() {
    }

    public static StaticCode getInstance() {
        return INSTANCE;
    }
}
